<div id="valine-comments" class="mt-4"></div>
{{- $assets := .Site.Data.assets }}
<script defer src="{{ printf $assets.valine.js.url $assets.valine.version }}" {{ with $assets.valine.js.sri }}
  integrity="{{ . }}" {{ end }} crossorigin></script>
{{- with .Site.Params.comment.valine }}
<script>
  document.addEventListener("DOMContentLoaded", function () {
    new Valine({
      el: "#valine-comments",
      {{- partial "utils/get-js-configs" . | safeJS }}
    })
  });
</script>
{{- end }}